home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 038a / qbrv1_2.zip / BASUTL.DOC < prev    next >
Text File  |  1991-11-22  |  18KB  |  655 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.           ============================================================
  28.  
  29.                              B A S I C   S O U R C E
  30.  
  31.             M E R G E,  C O M P A R E  &  F I N D   U T I L I T I E S
  32.  
  33.                             U S E R ' S   M A N U A L
  34.  
  35.                                by Richard Z. Ward
  36.  
  37.                                    Version 1.1
  38.  
  39.                              PC/MS-DOS 2.0 or Later
  40.  
  41.  
  42.           (C) Copyright 1986-1991 Richard Z. Ward, All Rights Reserved
  43.  
  44.           ============================================================
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.       
  53.      L I C E N S E   A G R E E M E N T ------------------------------
  54.  
  55.  
  56.      --------- A Limited License
  57.        
  58.      A limited license is granted to all users of the programs to make
  59.      copies of the programs and the accompanying documentation and to
  60.      distribute them to other users under the following restrictions: 
  61.       
  62.      1. Neither a fee nor any other consideration may be charged for
  63.      copying or distributing the programs without the express written
  64.      permission from Richard Z. Ward. 
  65.       
  66.      2. The programs and their documentation may not be distributed in
  67.      modified forms.
  68.  
  69.       
  70.      --------- Shareware Registration
  71.  
  72.      The BASIC Utility programs are the result of many hours of work.  If
  73.      you find them useful, please register your copies of the programs.  To
  74.      register, fill out a hard copy of the ORDERFRM.DOC file, write a check
  75.      for $7.50 to Richard Z. Ward, and send the form and check to the
  76.      following address:
  77.  
  78.           Richard Z. Ward / WARDCO
  79.           P.O. Box 454
  80.           Belmont, MA 02178
  81.  
  82.      You will then receive a newly serialized copy of the program and a
  83.      complete set of printed instructions.  As a registered user, you will
  84.      be notified of all future updates to the program; the first update
  85.      from the version you registered will be sent to you at no charge.
  86.  
  87.  
  88.      --------- User Support and Defects and Enhancements
  89.  
  90.      If you have any suggestions for future versions of the BASIC Utility
  91.      programs or find any defects in the existing versions, please fill out
  92.      a hard copy of the DEFECTS.DOC file and send the form to the above
  93.      address.
  94.  
  95.      Otherwise, If you are having trouble using the programs, please send
  96.      your written questions to the above address.
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.      BASMER, BASCMP & BASFND Utilities User's Manual            Page 2
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.      --------- Warranty/Liability
  115.  
  116.      Should a BASIC Utility programs' disk fail due to defects in materials
  117.      or workmanship, it will be replaced at no charge.  No other
  118.      representations or warranties are made, express or implied.
  119.  
  120.      In no event shall Richard Z. Ward be liable for any direct, indirect,
  121.      consequential or incidental damages arising from the use of the BASIC
  122.      Utility programs.
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.      BASMER, BASCMP & BASFND Utilities User's Manual            Page 3
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.      The Basic Source Merge Utility ----------------------------
  176.  
  177.  
  178.      --------- Introduction
  179.  
  180.      The Basic Source Merge utility has been designed to merge and sort any
  181.      two MicroSoft BASIC or GWBASIC source files.  If you write many BASIC
  182.      programs (or one large BASIC program), BASMER will increase your
  183.      productivity: BASMER has many useful and time-saving applications.
  184.  
  185.      For instance, if you have several versions of a program, you may find
  186.      it useful to separate the sections that distinguish each version from
  187.      the main program and save them in modules.  In this way, you can merge
  188.      a module
  189.      with the main program in order to create a new version suited for a
  190.      specific application or computer.
  191.  
  192.      Moreover, once you have created these modules from the main program,
  193.      you will find it easier and less time-consuming to modify the one main
  194.      program, rather than the several slightly different versions of your
  195.      program.
  196.      In short, updating a series of programs would become an easier and
  197.      less confusing task.
  198.  
  199.  
  200.      --------- On-line Instructions
  201.  
  202.      To read the short on-line instructions to the utility, from the Disk
  203.      Operating System, type BASMER.  BASMER will display a brief
  204.      description of its functions and a summary of its command parameters.
  205.  
  206.  
  207.      --------- Getting Started
  208.  
  209.      To merge two BASIC source files, type:
  210.  
  211.           BASMER Primary Secondary [/O][/P] ,
  212.  
  213.      where Primary and Secondary refer to two distinct BASIC source files
  214.      saved in ASCII format.
  215.  
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.      BASMER, BASCMP & BASFND Utilities User's Manual            Page 4
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.      --------- Primary and Secondary Files
  237.  
  238.      Before starting BASMER, however, you must decide which of the two
  239.      source files is the primary file.  BASMER will create a new primary
  240.      file with a .MRG extension, and write the output of the merge
  241.      operation to this file.
  242.  
  243.      For example, the command
  244.  
  245.           BASMER TEST SECOND
  246.  
  247.      instructs BASMER to treat the file TEST.BAS as the primary file, and
  248.      SECOND.BAS as the secondary file.  BASMER will create TEST.MRG, and
  249.      will write the union of TEST.BAS and SECOND.BAS to the new TEST.MRG
  250.      file.
  251.  
  252.  
  253.      --------- File Extensions
  254.  
  255.      BASMER recognizes three file extensions: BAS, BAK and MOD.  When no
  256.      file extension is specified on the command line, BASMER assumes the
  257.      BAS extension (note the above example).
  258.  
  259.      The MOD file extension refers to a module or subprogram of any main
  260.      BASIC source file.  This file extension makes it easier to distinguish
  261.      modules from main source files.
  262.  
  263.  
  264.      --------- Over-write Parameter /O
  265.  
  266.      The over-write parameter instructs BASMER to write over information
  267.      found in identically numbered lines in the primary file.  If the /O
  268.      parameter is omitted, BASMER will add and comment identically numbered
  269.      lines from the
  270.      secondary to the primary file.  If the lines themselves are identical,
  271.      however, BASMER will write only single copies of the lines to the new
  272.      primary file.
  273.  
  274.      For example, let line 10 of the example primary file TEST.BAS read 10
  275.      PRINT "PROGRAM TEST", and let line 10 of the example secondary file
  276.      SECOND.BAS read 10 GOTO 100.  The over-write parameter (/O) will
  277.      instruct BASMER to
  278.      replace line 10 of TEST.BAS with that of SECOND.BAS.
  279.  
  280.      Otherwise, BASMER will write line 10 from TEST.BAS to the new TEST.BAS
  281.      file and follow it with a commented line 10 from SECOND.BAS.  A
  282.      commented line of code contains an (') apostrophe and a tab character
  283.      as its first two characters.  Note that the MicroSoft BASICA
  284.      interpreter does not support
  285.      the apostrophe (') comment character.
  286.  
  287.  
  288.      BASMER, BASCMP & BASFND Utilities User's Manual            Page 5
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.      --------- Print Parameter /P
  297.  
  298.      The print parameter instructs BASMER to send output messages to the
  299.      printer as well as to the monitor.  The output messages include a
  300.      Copyright notice, a list of identically numbered but not duplicate
  301.      lines, the total number of such lines, the total number of new lines
  302.      sorted and inserted in the primary file, and the number of non-indexed
  303.      lines.
  304.  
  305.      If the printer is off-line or disconnected, BASMER will continue
  306.      execution and display the output messages on your video monitor. 
  307.      BASMER will not display any error messages concerning the status of
  308.      the printer.
  309.  
  310.  
  311.      --------- Non-indexed Lines
  312.  
  313.      BASMER writes to the new file line by line, sorting, and adding lines
  314.      taken from both source files.  Because it sorts by line numbers,
  315.      BASMER may not run reliably if it encounters a file with only a few
  316.      numbered lines.
  317.  
  318.      BASMER will not discontinue operation upon finding an unnumbered line,
  319.      however.  Instead, it will keep track of the number of non-indexed
  320.      lines, and inform you at the end of its execution.
  321.  
  322.      Please note that BASMER has no trouble with an occasional non-indexed
  323.      line.  But, more than one in a row will present problems.
  324.  
  325.  
  326.      --------- Reserved Characters
  327.  
  328.      There are a few reserved characters that BASMER assumes do not exist
  329.      in your source files.  These characters have ASCII values of zero (0)
  330.      and twenty-seven (27).  Since most editors will not allow you to enter
  331.      such values, this should not pose any problem.  However, if your
  332.      program has these characters in its source file, BASMER will not run
  333.      reliably.
  334.  
  335.      If you are not sure if your source has these characters, it probably
  336.      does not.  It takes some extra effort to insert them in source code. 
  337.      For example, the non-document mode of WordStar will uses these control
  338.      characters for standard word processing operations.
  339.  
  340.  
  341.  
  342.  
  343.  
  344.  
  345.  
  346.  
  347.  
  348.  
  349.      BASMER, BASCMP & BASFND Utilities User's Manual            Page 6
  350.  
  351.  
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358.      --------- System Requirements
  359.  
  360.      The following configuration is the minimum which is required to gain
  361.      access to all of the features of BASMER.
  362.  
  363.           * IBM PC family member or Compatible w/128K
  364.           * One disk drive
  365.           * A monochrome or color display
  366.           * A printer
  367.           * PC/MS-DOS version 2.0 or later
  368.  
  369.  
  370.      --------- IBM Compatible Personal Computers
  371.  
  372.      BASMER.COM was written, assembled and tested on an IBM PC. Since it
  373.      relies on very few IBM interrupt routines, BASMER should work well on
  374.      any IBM compatible personal computer.
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401.  
  402.  
  403.  
  404.  
  405.  
  406.  
  407.  
  408.  
  409.  
  410.      BASMER, BASCMP & BASFND Utilities User's Manual            Page 7
  411.  
  412.  
  413.  
  414.  
  415.  
  416.  
  417.  
  418.      The Basic Source Compare Utility --------------------------
  419.  
  420.  
  421.      --------- Introduction
  422.  
  423.      BASCMP displays or prints the differences between two BASIC source
  424.      files.  It marks the differences by line number, rather than by
  425.      hexadecimal address.  Thus, the output is both readable and
  426.      understandable.
  427.  
  428.      If you write many BASIC programs or are currently working on a large
  429.      BASIC program, BASCMP will be an invaluable aid: BASCMP has many
  430.      useful and time-saving applications.
  431.  
  432.      For example, if you write programs and support a software package
  433.      written in BASIC, you may find it useful to save the source code of
  434.      each version supported in the market.  BASCMP will quickly display
  435.      differences between the individual versions.  Thus, you can quickly
  436.      and reliably update any version of your program: have BASCMP compare
  437.      the newest version to the one you want to update.
  438.  
  439.  
  440.      --------- On-line Instructions
  441.  
  442.      To read the short on-line instructions, from the Disk Operating
  443.      System, type BASCMP.  BASCMP will display a short description of its
  444.      functions and a summary of its command parameters.
  445.  
  446.  
  447.      --------- Getting Started
  448.  
  449.      To compare two BASIC source files, type:
  450.  
  451.           BASCMP path1 path2 [/P]
  452.  
  453.      where path1 and path2 refer to two distinct BASIC source files. Note
  454.      that the order of files in the command line is not critical: it only
  455.      affects the BASCMP display.
  456.  
  457.      --------- File Extensions
  458.  
  459.      BASCMP recognizes three file extensions: BAS, BAK and MOD. When no
  460.      file extension is specified on the command line, BASCMP assumes the
  461.      BAS extension.
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468.  
  469.  
  470.  
  471.      BASMER, BASCMP & BASFND Utilities User's Manual            Page 8
  472.  
  473.  
  474.  
  475.  
  476.  
  477.  
  478.  
  479.  
  480.      --------- Print Parameter /P
  481.  
  482.      The Print parameter instructs BASCMP to send the output messages to
  483.      the printer.  Providing hard-copies of the differences between two
  484.      BASIC source files is an invaluable function for programmers.
  485.  
  486.      The BASCMP messages include a Copyright notice, a list of the lines
  487.      that differ from file to file, the total number of different lines,
  488.      and the number of non-indexed lines found.
  489.       
  490.      If the printer is not ready to accept characters, BASCMP will continue
  491.      execution and display the output messages on the video monitor. 
  492.      BASCMP will not display any error messages concerning the status of
  493.      the printer.
  494.  
  495.  
  496.      -------- Non-indexed Lines
  497.  
  498.      Because it compares the two BASIC source files by line numbers, BASCMP
  499.      will not run reliably if it encounters a file with only a few numbered
  500.      lines.
  501.  
  502.      Like BASMER, BASCMP will not discontinue operation upon finding an
  503.      unnumbered line.  Instead, it will count the number of non-indexed
  504.      lines, and display a warning message at the end of its execution.
  505.  
  506.      BASCMP has no trouble with an occasional non-indexed line.  But, more
  507.      than one in a row may cause BASCMP to lose track of which lines it is
  508.      supposed to compare.
  509.  
  510.  
  511.      --------- Reserved Characters
  512.  
  513.      BASCMP assumes that ASCII values of zero (0) and twenty-seven (27) are
  514.      not in your source files.  If your program has these characters in its
  515.      source file, BASCMP will will not run reliably.
  516.  
  517.      BASCMP uses ASCII character zero and twenty-seven to keep track of the
  518.      small section of a file that is loaded in memory.  Both BASMER and
  519.      BASCMP only load five kilobytes of any one file at a time.
  520.  
  521.  
  522.      --------- System Requirements (See same section for BASMER)
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.      BASMER, BASCMP & BASFND Utilities User's Manual            Page 9
  533.  
  534.  
  535.  
  536.  
  537.  
  538.  
  539.  
  540.  
  541.      The Basic Source Find Utility -----------------------------
  542.  
  543.  
  544.      --------- Introduction
  545.  
  546.      The Basic Source Find utility has been designed to find almost any set
  547.      of ASCII characters in any BASIC source file.  BASFND will display all
  548.      lines in which the string of ASCII characters is found.  If you write
  549.      many BASIC programs (or one large BASIC program), BASFND will
  550.      immediately increase
  551.      your productivity: BASFND has many useful and time-saving
  552.      applications.
  553.  
  554.      First, since many of the most popular programming editors will not
  555.      "search" for control characters in a file, you will find it useful to
  556.      have BASFND search for these characters.  Then, you can use your
  557.      programming editor to make the actual changes in the source file.
  558.  
  559.      Second, by listing lines of BASIC code according to a certain variable
  560.      or set of characters, BASFND allows you to edit a BASIC source file
  561.      with a clearer understanding of the tasks involved.  In this way,
  562.      BASFND helps to keep your time spent editing a BASIC program
  563.      productive.
  564.  
  565.      Finally, regardless of the programming editor, it is easy to get lost
  566.      in a long BASIC source file -- especially if you are not familiar with
  567.      the code.  By grouping and listing distant lines of code, BASFND helps
  568.      to remedy this problem.
  569.  
  570.  
  571.      --------- On-line Instructions
  572.  
  573.      To read the short on-line instructions to the utility, from the Disk
  574.      Operating System, type BASFND.  BASFND will display a brief
  575.      description of its functions and a summary of its command parameters.
  576.  
  577.  
  578.      --------- Getting Started
  579.  
  580.      To find ASCII characters in a BASIC source file, type:
  581.  
  582.           BASFND [Pathname] [/P] ,
  583.  
  584.      where Pathname refers to the BASIC source file saved in ASCII
  585.      format on a specified directory.
  586.  
  587.  
  588.  
  589.  
  590.  
  591.  
  592.  
  593.      BASMER, BASCMP & BASFND Utilities User's Manual            Page 10
  594.  
  595.  
  596.  
  597.  
  598.  
  599.  
  600.  
  601.  
  602.      --------- File Extensions
  603.  
  604.      BASFND recognizes three file extensions: BAS, BAK and MOD.  When no
  605.      file extension is specified on the command line, BASFND assumes the
  606.      BAS extension.
  607.  
  608.      The MOD file extension refers to a module or subprogram of any main
  609.      BASIC source file.  This file extension makes it easier to distinguish
  610.      modules from main source files.
  611.  
  612.  
  613.      --------- Print Parameter /P
  614.  
  615.      The print parameter instructs BASFND to send output messages to the
  616.      printer as well as to the monitor.  The output messages include a
  617.      Copyright notice, a list of lines that contain the specified set of
  618.      ASCII characters,
  619.      and the total number of lines found.
  620.  
  621.      If the printer is off-line or disconnected, BASFND will continue
  622.      execution and display the output messages on your video monitor. 
  623.      BASFND will not display any error messages concerning the status of
  624.      the printer.
  625.  
  626.  
  627.      --------- Reserved Characters
  628.  
  629.      There are a few reserved characters that BASFND assumes do not exist
  630.      in your source files.  These characters have ASCII values of zero (0)
  631.      and twenty-seven (27).  Since most editors will not allow you to enter
  632.      such values, this should not pose any problem.  However, if your
  633.      program has these characters in its source file, BASFND will not run
  634.      reliably.
  635.  
  636.      Furthermore, note that BASFND will not search for a character having
  637.      an ASCII value of twenty-six (26).  If you press the ESC key, BASFND
  638.      will abort execution and return you to DOS.
  639.  
  640.  
  641.      --------- System Requirements (See same section for BASMER)
  642.  
  643.  
  644.  
  645.  
  646.  
  647.  
  648.  
  649.  
  650.  
  651.  
  652.  
  653.  
  654.      BASMER, BASCMP & BASFND Utilities User's Manual            Page 11
  655.